import Vue from 'vue'
import Router from 'vue-router'
import Register from '@/components/Register'
import Login from '@/components/Login'
import Index from '@/components/Index'
import Detail from '@/components/Detail'
import Search from '@/components/Search'
import List from '@/components/List'
import Cart from '@/components/Cart'
import Place_order from '@/components/Place_order'
import Person from '@/components/Person'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/detail',
      name: 'Detail',
      component: Detail
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/list',
      name: 'List',
      component: List
    },
    {
      path: '/cart',
      name: 'Cart',
      component: Cart
    },
    {
      path: '/placeorder',
      name: 'Place_order',
      component: Place_order
    },
    {
      path: '/person',
      name: 'Person',
      component: Person
    }
  ]
})
